package org.dromara.business.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.dromara.common.tenant.core.TenantEntity;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * 用户积分流水对象 user_flowing
 *
 * @author zlj
 * @date 2024-08-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@TableName("user_flowing")
public class UserFlowing extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "user_flowing_id")
    private Long userFlowingId;

    /**
     * 积分
     */
    private BigDecimal amount;

    /**
     * 1返佣  2提现  3返佣
     */
    private Integer type;

    /**
     * 购买人id
     */
    private Long subordinateId;


    /**
     * 状态(1:审批中2:审批通过,3审批不通过
     */
    private String state;


}
